import Vue from 'vue';

// list with filters page
//import login from '../views/task/login';
import task from '../views/task/task';
import todayTask from '../views/task/todayTask';
import weekTask from '../views/task/weekTask';
import monthTask from '../views/task/monthTask';
import yearTask from '../views/task/yearTask';
import projectTask from '../views/task/projectTask';
import oneTask from '../views/task/oneTask';

//需求和建议
import needAndAdvice from '../views/needAndAdvice/needAndAdvice';
import advice from '../views/needAndAdvice/advice';
import need from '../views/needAndAdvice/need';
import blog from '../views/blog/blog';
//日报
import note from '../views/note/note';
//市场
import market from '../views/market/market';
let routes = [
  //	{
  //		path: "/login",
  //		component: login,
  ////		redirect: "/login",
  //		name: '登录',
  //	}, //重定向  
  {
    path: '/task',
    component: task,
    name: '任务',
    redirect: "/todayTask",
    children: [{
        path: '/todayTask',
        component: todayTask,
        name: '今日任务'
      },
      {
        path: '/weekTask',
        component: weekTask,
        name: '周任务'
      },
      {
        path: '/monthTask',
        component: monthTask,
        name: '月任务'
      },
      {
        path: '/yearTask',
        component: yearTask,
        name: '年任务'
      },
      {
        path: '/projectTask',
        component: projectTask,
        name: '项目任务'
      },
      {
        path: '/oneTask',
        component: oneTask,
        name: '单任务'
      },
    ]
  },
  {
    path: '/',
    redirect: "/blog",
    component: task
  }, {
    path: '/blog',
    component: blog
  }, {
    path: "/note",
    component: note,
    name: '日报',
  }, {
    path: "/market",
    component: market,
    name: '市场',
  },
  {
    path: '/needAndAdvice',
    component: needAndAdvice,
    name: '需求和建议',
    redirect: "/advice",
    children: [{
      path: '/advice',
      component: advice,
      name: '建议'
    }, {
      path: '/need',
      component: need,
      name: '需求'
    }]
  }
];

export default routes;
